package com.bestcem.xm.member.grpc.service.param.member;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 示例服务
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2022/4/19
 */

@Getter
@Setter
@ToString
public class ListMembersByWxParam {

    @NotNull(message = "组织id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "组织id格式错误")
    private String orgId;

    @NotNull(message = "status不能为空")
    private Integer status;

    @NotNull(message = "memberType不能为空")
    private Integer memberType;

    @Valid
    @Size(min = 1, max = 100, message = "联系人查询列表不能为空")
    private List<MemberQuery> queryParams;
}
